//
//  PGFastLoginButton.m
//  youqu
//
//  Created by 彭鹏 on 16/9/24.
//  Copyright © 2016年 pengpeng. All rights reserved.
//

#import "PGFastLoginButton.h"

@implementation PGFastLoginButton

-(void)awakeFromNib {
    [super awakeFromNib];
    
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    UIImageView *imageView = self.imageView;
    imageView.pg_centerX = self.pg_width*0.5;
    
    
    UILabel *titleLabel = self.titleLabel;
    self.titleLabel.pg_width = self.pg_width;
    titleLabel.pg_centerY = CGRectGetMaxY(imageView.frame) + 10;
    titleLabel.pg_centerX = imageView.pg_centerX;
    
    
    
    
}

@end
